package com.copa.module.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-09
 * @function   t_order_goods表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_order_goods")
@ApiModel(value="OrderGoods对象", description="")
public class OrderGoodsEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "子订单编号")
    @TableField("order_goods_sn")
    private String orderGoodsSn;

    @ApiModelProperty(value = "sku编号")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty(value = "单个商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "退款状态：0未退款 1申请退款 2用户退款 3商家退款")
    @TableField("refund_status")
    private Integer refundStatus;

//    @ApiModelProperty(value = "用户申请退款时间")
//    @TableField("apply_refund_time")
//    private LocalDateTime applyRefundTime;
//
//    @ApiModelProperty(value = "退款时间")
//    @TableField("refund_time")
//    private LocalDateTime refundTime;
//
//    @ApiModelProperty(value = "用户退款信息")
//    @TableField("refund_user_remark")
//    private String refundUserRemark;
//
//    @ApiModelProperty(value = "商家退款信息")
//    @TableField("refund_store_remark")
//    private String refundStoreRemark;


    public static final String ORDER_ID = "order_id";

    public static final String ORDER_GOODS_SN = "order_goods_sn";

    public static final String PRODUCT_ID = "product_id";

    public static final String NUM = "num";

    public static final String REFUND_STATUS = "refund_status";

    public static final String APPLY_REFUND_TIME = "apply_refund_time";

    public static final String REFUND_TIME = "refund_time";

    public static final String REFUND_USER_REMARK = "refund_user_remark";

    public static final String REFUND_STORE_REMARK = "refund_store_remark";


}
